package com.szecsenyi.patterns.observer;

import com.szecsenyi.patterns.observer.observer.GeneralObserver;

public class Printer extends GeneralObserver {

	String textToPrint;

	@Override
	public void display() {
		System.out.println("I print this:" + textToPrint);
	}

	@Override
	public void update(String message) {
		textToPrint = message;
		display();
	}

}
